package workai.fcx.com.message_module.api;

/**
 * Created by hxh on 2017/8/4.
 */


import com.hxh.component.basicannotation.annotation.ApiServices;
import com.hxh.component.basicannotation.annotation.UseMRecycleView;
import com.hxh.component.basicore.ui.recycleview.mrecycleview.NetResultBean;
import com.hxh.component.business.utils.Constant;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;
import workai.fcx.com.message_module.bean.MyMsgDTO;

/**
 * 创建者：hxh
 * 时间：  2017/8/4
 * 描述：
 */
@ApiServices(Constant.APIServicesTag.API_APISERVICES)
public interface MessageServices {
    /**
     * 获取消息列表
     * @param limit
     * @param offset
     * @return
     */
    @GET("/messagemgm/v1/messages")
    @UseMRecycleView
    Observable<NetResultBean<MyMsgDTO>> getMsgs(@Query("limit") int limit, @Query("offset") int offset);
}
